@inherits CmsWebViewPage

@*
	Citrus Island 1.1 is is a free, W3C-compliant, CSS-based website template by styleshout.com.
	This work is distributed under the Creative Commons Attribution 2.5 License, which means that you
	are free to use and modify it for any purpose. All I ask is that you include a link back to my website in your credits.

	http://www.styleshout.com/

	Conversion to CarrotCake CMS MVC Template: Carrotware
*@

@{
	Layout = null;

	ViewBag.Title = CmsPage.Titlebar;
	ViewBag.SiteName = CmsPage.TheSite.SiteName;

	TwoLevelNavigation nav = new TwoLevelNavigation() {
		FontSize = new SizeUnit("10px"),
		ForeColor = System.Drawing.ColorTranslator.FromHtml("#FFFFFF"),
		BackColor = System.Drawing.ColorTranslator.FromHtml("#F4845A"),
		ElementId = "nav"
	};

	List<TypeHeadingOption> heads = new List<TypeHeadingOption>();
	heads.Add(new TypeHeadingOption { KeyValue = PageViewType.ViewType.DateIndex, LabelText = "Date:" });
	heads.Add(new TypeHeadingOption { KeyValue = PageViewType.ViewType.DateDayIndex, LabelText = "Day:", FormatText = "{0:dddd, d MMMM yyyy}" });
	heads.Add(new TypeHeadingOption { KeyValue = PageViewType.ViewType.DateMonthIndex, LabelText = "Month:", FormatText = "{0:MMM yyyy}" });
	heads.Add(new TypeHeadingOption { KeyValue = PageViewType.ViewType.DateYearIndex, LabelText = "Year:", FormatText = "{0:yyyy}" });
	heads.Add(new TypeHeadingOption { KeyValue = PageViewType.ViewType.CategoryIndex, LabelText = "Category:" });
	heads.Add(new TypeHeadingOption { KeyValue = PageViewType.ViewType.TagIndex, LabelText = "Tag:" });
	heads.Add(new TypeHeadingOption { KeyValue = PageViewType.ViewType.AuthorIndex, LabelText = "Content by " });
	heads.Add(new TypeHeadingOption { KeyValue = PageViewType.ViewType.SearchResults, LabelText = "Search results for:", FormatText = " [ {0} ] " });

	CmsPage.TypeLabelPrefixes = heads;
}

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

	@CarrotCakeHtml.MetaTags()
	@CarrotCakeHtml.Rss()

	<title>@CmsPage.Titlebar</title>

	@CarrotWeb.RenderTwoPartControlBodyCss(nav)

	<link rel="stylesheet" href="~/Assets/citrus-island/CitrusIsland.css" type="text/css" />

	@(new jquerybasic() { SelectedSkin = jquerybasic.jQueryTheme.Silver, UseJqueryMigrate = true })

	@CarrotCakeHtml.GetSiteCanonicalURL()

	@CarrotCakeHtml.RenderOpenGraph()

	@CarrotCakeHtml.IncludeHead()
</head>
<body>
	<div id="wrap">
		<div id="header">
			@{
				using (var srchFrm = CarrotCakeHtml.BeginSearchForm(new { @class = "search" })) {
					var srch = srchFrm.GetModelHelper();
					<p>
						@srch.TextBoxFor(x => x.query, new { @class = "textbox" })
						<input type="submit" class="button" value="Search" />
					</p>
				}
			}

			<h1 id="logo"><a href="~/">@ViewBag.SiteName</a> </h1>
			<h2 id="slogan">@CmsPage.TheSite.SiteTagline</h2>
		</div>
		<div>
			<div id="menu-wrapper">
				@CarrotWeb.RenderTwoPartControlBody(nav)
			</div>
			<div>
				@CarrotCakeHtml.GetBreadCrumbNavigation("green")
			</div>
		</div>
		<div id="sidebar">
			<div>
				@RenderSection("SideBar", required: false)
			</div>
			<div>
				@CarrotCakeHtml.RenderWidget("phLeftTop")
			</div>
			<div>
				@CarrotCakeHtml.RenderBody(CarrotCakeHtml.TextFieldZone.TextLeft)
			</div>
			<div>
				@CarrotCakeHtml.RenderWidget("phLeftBottom")
			</div>
			<p>&nbsp;</p>
		</div>
		<div id="main">
			<h1>@CmsPage.Heading</h1>
			<div>
				@CarrotCakeHtml.RenderWidget("phCenterTop")
			</div>

			<div>
				@CarrotCakeHtml.RenderBody(CarrotCakeHtml.TextFieldZone.TextCenter)
				@RenderBody()
			</div>

			@if (CmsPage.ThePage.ContentType == ContentPageType.PageType.BlogEntry) {
				var pagecat = CmsPage.GetPageCategories(25);
				var pagetag = CmsPage.GetPageTags(25);

				<div class="meta">
					@foreach (var itm in pagecat) {
						<span class="meta-item @String.Format("meta-count{0}", CmsPage.GetRoundedMetaPercentage(itm))"><a href="@itm.Uri">@itm.Text</a></span>
					}
				</div>

				<div class="meta">
					@foreach (var itm in pagetag) {
						<span class="meta-item @String.Format("meta-count{0}", CmsPage.GetRoundedMetaPercentage(itm))"><a href="@itm.Uri">@itm.Text</a></span>
					}
				</div>
			}

			@RenderSection("PagedDataSection", required: false)
			<div>
				@CarrotCakeHtml.RenderWidget("phCenterBottom")
			</div>

			<hr />

			@RenderSection("SubContent", required: false)
		</div>
		<div id="rightbar">
			<div class="rsszone">
				@CarrotCakeHtml.RssLink(SiteData.RSSFeedInclude.BlogOnly, null, "Blog RSS", new { @class = "rssimage" })
				&nbsp;&nbsp;&nbsp;&nbsp;
				@CarrotCakeHtml.RssLink(SiteData.RSSFeedInclude.PageOnly, null, "Page RSS", new { @class = "rssimage" })
			</div>
			<div>
				@RenderSection("RightSideBar", required: false)
			</div>
			<div>
				@CarrotCakeHtml.RenderWidget("phRightTop")
			</div>
			<div>
				@CarrotCakeHtml.RenderBody(CarrotCakeHtml.TextFieldZone.TextRight)
			</div>
			<div>
				@CarrotCakeHtml.RenderWidget("phRightBottom")
			</div>
			<p>&nbsp;</p>
		</div>
	</div>
	<div id="footer">
		<div id="footer-content">
			<div id="footer-right">
				<a href="~/">Home</a>
				| <a href="@CarrotCakeHtml.SiteMapUri">Site Map</a>
				| @CarrotCakeHtml.RssTextLink("RSS Feed", null)
			</div>
			<div id="footer-left">
				@Html.Raw(String.Format("&copy;  {0}, <strong>{1}</strong>. ", DateTime.Now.Year, CmsPage.TheSite.SiteName.Trim()))
				All rights reserved.
				<br />
				Site built with <a target="_blank" href="http://www.carrotcakecms.com/">carrotcake cms</a>
				<br />
				Design by: <a target="_blank" href="http://www.styleshout.com/">styleshout</a>
				| Valid <a target="_blank" href="http://validator.w3.org/check/referer">XHTML</a>
				| <a target="_blank" href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
			</div>
		</div>
	</div>

	@CarrotCakeHtml.IncludeFooter()
</body>
</html>